package Market;


import sim.field.grid.*;


  public class ElGrid {

    private  ObjectGrid2D GenCoSpace;
    private  ObjectGrid2D LSESpace;
	public ElGrid(){
		
	GenCoSpace = new  ObjectGrid2D(100, 100);
	LSESpace   = new  ObjectGrid2D(100, 100); 
	} 
	
	  public void addGenCoAtNodeK(GenCo gen, int k){
		    if(k==1){
		      int x = (int) (0.5*100);
		      int y = (int) (0.2*100);
		      GenCoSpace.set(x, y,gen);
		      //gen.setXY(x, y);		      
		    }
		    else if(k==2){
		      int x = (int) (0.2*100);
		      int y = (int) (0.8*100);
		      GenCoSpace.set(x,y,gen);
		      //gen.setXY(x,y);
		    }
		    else if(k==3){
		      int x = (int) (0.8*100);
		      int y = (int) (0.8*100);
		      GenCoSpace.set(x,y,gen);
		     // gen.setXY(x,y);
		    }
		    else{
		      System.out.println();
		    }
    }
	  
	  public void addLSEAtNodeK(LSE lse, int k){
		    if(k==1){
			      int x = (int) (0.5*100+1);
			      int y = (int) (0.2*100);
			      LSESpace.set(x, y,lse);		      
			    }
			else if(k==2){
			      int x = (int) (0.2*100+1);
			      int y = (int) (0.8*100);
			      LSESpace.set(x,y,lse);
			    }
			else if(k==3){
			      int x = (int) (0.8*100+1);
			      int y = (int) (0.8*100);
			      LSESpace.set(x,y,lse);
			    }
			else{
			      System.out.println();
			    }
      }
 }
